package com.jing.weibo.mapper.info;

import java.util.List;

import com.jing.weibo.pojo.info.Info;

/**
 * 信息的Mapper
 * @author jing.yue
 * @version 2012/09/25 1.0.0
 */
public interface InfoMapper {

	/**
	 * 保存信息
	 * @param info
	 * @throws Exception
	 */
	public abstract void saveInfo(Info info) throws Exception;

	/**
	 * 分页获取信息列表
	 * @param info
	 * @return
	 * @throws Exception
	 */
	public abstract List<Info> findInfo(Info info) throws Exception;

	/**
	 * 分页获取信息列表记录数
	 * @param info
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findInfoCount(Info info) throws Exception;

	/**
	 * 根据ID获取对象
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public abstract Info findByIdInfo(Integer id) throws Exception;

	/**
	 * 根据ID修改信息转发数
	 * @param info
	 * @throws Exception
	 */
	public abstract void updateInfoTranspond(Info info) throws Exception;

	/**
	 * 获取所有信息
	 * @return
	 * @throws Exception
	 */
	public abstract List<Info> findAllInfo() throws Exception;
}